package com.symria.server.dao.resource;

import java.util.List;

import com.symria.framework.dao.util.TemplateDao;
import com.symria.framework.page.Page;
import com.symria.server.po.AppResource;
import com.symria.system.statement.Statement;

public class ResourceDao extends TemplateDao {

	public void searchResource(Integer uid,String type,String name,Page page){
		Statement stms = stmsFactory.createStatement(" from AppResource ar where ar.operId=?");
		          stms.addParam(uid);
		          stms.appendLike(null, "and", "ar.resName", name);
		          stms.append("and", "ar.resType", "=", type);
		          stms.addOrderBy(" ar.id desc");
		templateDao.search(stms, page);
	}
}
